package com.learn.ert.controller;

import com.learn.ert.base.BaseApiService;
import com.learn.ert.base.BaseResponse;
import com.learn.ert.mapper.ErIconLanMapper;
import com.learn.ert.service.ErIconLanService;
import com.learn.ert.utils.HttpUtils;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
 * 
 *
 * @author sjf
 * @email 2334593702@qq.com
 * @date 2020-08-14 17:47:02
 */
@RestController
@RequestMapping("api/ericonlan")
@Api(tags = "导航栏管理接口")
public class ErIconLanController {
    @Autowired
    private ErIconLanService erIconLanService;

  /*  *//**
     * 列表
     *//*
    @RequestMapping("/list")
  //  @RequiresPermissions("api:ericonlan:list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = erIconLanMapper.queryPage(params);

        return R.ok().put("page", page);
    }


    *//**
     * 信息
     *//*
    @RequestMapping("/info/{lanId}")
   // @RequiresPermissions("api:ericonlan:info")
    public R info(@PathVariable("lanId") Long lanId){
		ErIconLanEntity erIconLan = erIconLanMapper.selectById(lanId);

        return R.ok().put("erIconLan", erIconLan);
    }

    *//**
     * 保存
     *//*
    @RequestMapping("/save")
   // @RequiresPermissions("api:ericonlan:save")
    public R save(@RequestBody ErIconLanEntity erIconLan){
		erIconLanMapper.insert(erIconLan);

        return R.ok();
    }

    *//**
     * 修改
     *//*
    @RequestMapping("/update")
    //@RequiresPermissions("api:ericonlan:update")
    public R update(@RequestBody ErIconLanEntity erIconLan){
		erIconLanMapper.updateById(erIconLan);

        return R.ok();
    }

    *//**
     * 删除
     *//*
//    @RequestMapping("/delete")
    //@RequiresPermissions("api:ericonlan:delete")
//    public R delete(@RequestBody Long[] lanIds){
//		erIconLanMapper.deleteById(Arrays.asList((Long) lanIds));
//
//        return R.ok();
//    }*/

}
